package pl.edu.utp.kursy.database;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public class BaseCourse extends BaseId{
    
    @Column(name = "name")
    protected String name;
    
    @Column(name = "description", columnDefinition="text")
    protected String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    @Override
    public String toString(){
        return name;
    }
}